package chapter12.e01;

class A {
}

class Example01 {
    public static void main(String args[]) {
        Class<?> c1 = null;
        Class<?> c2 = null;
        Class<?> c3 = null;
        try {
            c1 = Class.forName("cn.itcast.A");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        c2 = new A().getClass();
        c3 = A.class;
        System.out.println("类名称：" + c1.getName());
        System.out.println("类名称：" + c2.getName());
        System.out.println("类名称：" + c3.getName());
    }
}
